/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.pay.model; 

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.pay.model.*;
import com.gm.memberShip.pay.persistence.interfaces.*;
import com.gm.memberShip.pay.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


public class Exchange  implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Exchange";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_ORDER_ID = "orderId";
	public static final String ALIAS_USER_ID = "userId";
	public static final String ALIAS_LAST_MONEY = "lastMoney";
	public static final String ALIAS_OUT_POINT = "outPoint";
	public static final String ALIAS_RESULT_POINT = "resultPoint";
	public static final String ALIAS_ENTER_IP = "enterIp";
	public static final String ALIAS_ENTER_TIME = "enterTime";
	public static final String ALIAS_ENTER_SERVER = "enterServer";
	public static final String ALIAS_ENTER_USER_ID = "enterUserId";
	public static final String ALIAS_REMARK = "remark";
	
	 
	 
	//columns START
	private java.lang.Integer id;
	private java.lang.String orderId;
	private java.lang.String userId;
	private java.lang.Integer lastMoney;
	private java.lang.Integer outPoint;
	private java.lang.Integer resultPoint;
	private java.lang.String enterIp;
	private java.util.Date enterTime;
	private java.lang.String enterServer;
	private java.lang.String enterUserId;
	private java.lang.String remark;
	//columns END

	public Exchange(){
	}

	public Exchange(
		java.lang.Integer id
	){
		this.id = id;
	} 
		 
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
		 
	public void setOrderId(java.lang.String value) {
		this.orderId = value;
	}
	
	public java.lang.String getOrderId() {
		return this.orderId;
	}
		 
	public void setUserId(java.lang.String value) {
		this.userId = value;
	}
	
	public java.lang.String getUserId() {
		return this.userId;
	}
		 
	public void setLastMoney(java.lang.Integer value) {
		this.lastMoney = value;
	}
	
	public java.lang.Integer getLastMoney() {
		return this.lastMoney;
	}
		 
	public void setOutPoint(java.lang.Integer value) {
		this.outPoint = value;
	}
	
	public java.lang.Integer getOutPoint() {
		return this.outPoint;
	}
		 
	public void setResultPoint(java.lang.Integer value) {
		this.resultPoint = value;
	}
	
	public java.lang.Integer getResultPoint() {
		return this.resultPoint;
	}
		 
	public void setEnterIp(java.lang.String value) {
		this.enterIp = value;
	}
	
	public java.lang.String getEnterIp() {
		return this.enterIp;
	}
		 
	public void setEnterTime(java.util.Date value) {
		this.enterTime = value;
	}
	
	public java.util.Date getEnterTime() {
		return this.enterTime;
	}
		 
	public void setEnterServer(java.lang.String value) {
		this.enterServer = value;
	}
	
	public java.lang.String getEnterServer() {
		return this.enterServer;
	}
		 
	public void setEnterUserId(java.lang.String value) {
		this.enterUserId = value;
	}
	
	public java.lang.String getEnterUserId() {
		return this.enterUserId;
	}
		 
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}
	
	public java.lang.String getRemark() {
		return this.remark;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("OrderId",getOrderId())
			.append("UserId",getUserId())
			.append("LastMoney",getLastMoney())
			.append("OutPoint",getOutPoint())
			.append("ResultPoint",getResultPoint())
			.append("EnterIp",getEnterIp())
			.append("EnterTime",getEnterTime())
			.append("EnterServer",getEnterServer())
			.append("EnterUserId",getEnterUserId())
			.append("Remark",getRemark())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Exchange == false) return false;
		if(this == obj) return true;
		Exchange other = (Exchange)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

